<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo10样式绑定-对象绑定</title>
  <script src="./js/vue.min.js"></script>

</head>

<body>
   <div id="app">
      <div  class="static" v-bind:class="classObject"></div>
   </div>

</body>
<style>
  .active{
    width: 100px;
    height: 100px;
    background: green;
  }
  .text-danger{
    width: 100px;
    height: 100px;
    background: red;
  }
</style>
<script type="application/javascript">
  var vm = new Vue({
    el: "#app",
    data: {
      classObject:{
        active: true,
        'text-danger': true
      }
    }
  });

</script>
</html>
